package myws.springbean;

import com.myws.sup.Dependency;

/**
 * Created by Alexander on 02.03.14.
 */
public class HelloWorld {
    private Dependency dependency;

    public void setName(String name) {
        dependency = new Dependency(name);
    }

    public void printHello() {
        System.out.println("Hello! " + dependency.getName());
    }
}
